/****************************************************************
 *This file is verity_func.h
 ****************************************************************/
#ifndef __VERITY_FUNC_H_
#define __VERITY_FUNC_H_

//frame data define
#define FRAME_HEAD_ONE			0xeb
#define FRAME_HEAD_TWO			0x90

#define FRAME_END_ONE			0x14
#define FRAME_END_TWO			0x6f

#define ADDR_ZERO               0x00

//frame verity result define
#define FRAME_CORRECT				0x55
#define FRAME_INCORRECT 			0xaa

// verity_func file function extern
extern  unsigned char calculate_lrc(const unsigned char *lrc_buff, unsigned int lrc_length);
extern unsigned char verity_frame(const unsigned char *arg, unsigned int len, unsigned char *return_arg, unsigned int *return_len);

#endif
